package com.xing.gc;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.Arrays;
import java.util.Set;

/**
 * @Author: ljx
 * @Date: 2022-01-21 16:53
 */
public class Main2Test {

    public static void main(String[] args) {
        Set<String> sss = Sets.newHashSet("2", "3");
        Set<String> ddd = Sets.newHashSet("2");
        System.out.println(sss.equals(ddd));

        Sets.SetView<String> difference = Sets.difference(sss, ddd);
        System.out.println(difference);

        String sfsf = "fsdsds您好 %s, s哈哈 %s";

        String[] sf = Lists.newArrayList(Arrays.asList("1", "2")).toArray(new String[0]);

        String s1 = String.format(sfsf, sf);
        System.out.println(s1);
//        System.out.println(sss);
//        System.out.println(ddd);
//
//        boolean b = sss.retainAll(ddd);
//
//        System.out.println(b);
//        System.out.println(sss);
    }


}
